#include "remote_widget.hpp"
RemoteWidget::RemoteWidget(QWidget *parent)
    : QWidget(parent)
    , mainLayout(nullptr)
    , titleLabel(nullptr)
    , configLabel(nullptr)
{
    setupUI();
}
RemoteWidget::~RemoteWidget()
{
}
void RemoteWidget::setupUI()
{
    mainLayout = new QVBoxLayout(this);
    titleLabel = new QLabel("Remote Control Tab", this);
    titleLabel->setStyleSheet("font-size: 18px; font-weight: bold; color: blue;");
    titleLabel->setAlignment(Qt::AlignCenter);
    configLabel = new QLabel(QString("Config Info:\n"
        "App Name: %1\n"
        "Max Speed: %2\n"
        "Default Speed: %3")
        .arg(Config::APP_NAME)
        .arg(Config::REMOTE_MAX_SPEED)
        .arg(Config::REMOTE_DEFAULT_SPEED), this);
    configLabel->setStyleSheet("background-color: #f0f0f0; padding: 10px; border: 1px solid #ccc;");
    mainLayout->addWidget(titleLabel);
    mainLayout->addWidget(configLabel);
    mainLayout->addStretch();
}